package com.atguigu.jinx.entity.vo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

@Data
public class ChangePersonalVO implements Serializable {


    /**
     * 昵称
     */
    private String nickName;

    /**
     * 头像
     */
    private String iconUrl;

    /**
     * 手机号
     */
//    @Pattern(regexp = "^(1[3-9]\\d{9}|0\\d{9,10})$", message = "手机号格式不正确")
    private String phone;

    /**
     * 电子邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 微信号
     */
    private String wechatNum;

}
